// @ts-ignore
import {BasicColumn} from '/@/components/Table';
// @ts-ignore
import {FormSchema} from '/@/components/Table';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '项目名称',
    align: "center",
    dataIndex: 'projectName'
  },
  {
    title: '业务号码',
    align: "center",
    dataIndex: 'accNbr'
  },
  {
    title: '当前状态',
    align: "center",
    dataIndex: 'projectStatus_dictText'
  },
  {
    title: '归属部门',
    align: "center",
    dataIndex: 'dept_dictText'
  },
  {
    title: '业务经理',
    align: "center",
    dataIndex: 'busiEnplc_dictText'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: "项目名称",
    field: 'projectName',
    component: 'Input',
    colProps: {span: 6},
  },
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '项目名称',
    field: 'projectName',
    component: 'Input',
  },
  {
    label: '业务号码',
    field: 'accNbr',
    component: 'Input',
  },
  {
    label: '当前状态',
    field: 'projectStatus',
    component: 'JDictSelectTag',
    componentProps:{
      dictCode: "status"
    },
  },
  {
    label: '归属部门',
    field: 'dept',
    component: 'JSelectDept',
  },
  {
    label: '业务经理',
    field: 'busiEnplc',
    component: 'JSelectUserByDept',
    componentProps:{
      labelKey: 'realname',
    },
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
